package main

import (
	"GoLearnCase/pkg/Teacher"
	"GoLearnCase/pkg/student"

	"fmt"
)

import (
	"GoLearnCase/pkg/caculte"
	"GoLearnCase/pkg/weekname"
)

func main() {
	for {
		fmt.Println("课堂练习功能列表：")
		fmt.Println("1. 计算器功能")
		fmt.Println("2. 星期功能")
		fmt.Println("3. 查看学生信息功能")
		fmt.Println("4. 插入学生信息功能")
		fmt.Println("5. 查看教师信息功能")
		fmt.Println("6. 插入教师信息功能")
		fmt.Println("7. 退出")
		var input int
		fmt.Scan(&input)

		switch input {
		case 1:
			fmt.Println("计算器功能-加法")
			fmt.Println("请输入第一个数字：")
			var a int
			fmt.Scanln(&a)
			fmt.Println("请输入第二个数字：")
			var b int
			fmt.Scanln(&b)
			result := caculte.AddNumber(a, b)
			fmt.Printf("%d + %d 结果为: %d\n", a, b, result)
			fmt.Println("Hello World")
		case 2:
			weekname.WeekInformationShow()
		case 3:
			student.GetStudentInformation()
		case 4:
			student.InsertStudentInformation()
		case 5:
			Teacher.GetTeacherInformation()
		case 6:
			Teacher.InsertTeacherInformation()
		case 7:
			fmt.Println("退出程序")
			return
		}
	}
	fmt.Println("Hello World")
	weekname.WeekInformationShow()
	result := caculte.AddNumber(1, 2)
	fmt.Println(result)
}
